package ch.gibb.learnit.client.mapping;

/**
 * This class represents a template for a web page. The content of the page will be loaded in the template.
 */
public class TemplateBean {
    private String id;
    private String path;

    @Override
    public String toString() {
        return "TemplateBean{" +
                "id='" + id + '\'' +
                ", path='" + path + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        TemplateBean that = (TemplateBean) o;

        if (id != null ? !id.equals(that.id) : that.id != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        return id != null ? id.hashCode() : 0;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }
}
